/*
 * pping_opt.h
 *
 *  Created on: 09/05/2012
 *      Author: jorge
 */

#ifndef PPING_CLIENT_OPT_H_
#define PPING_CLIENT_OPT_H_

#ifndef STDIO_H_
#include <stdio.h>
#endif /* STDIO_H_ */

#ifndef UNISTD_H_
#include <unistd.h>
#endif /* UNISTD_H */

#ifndef STDDEF_H_
#include <stddef.h>
#endif /*STDDEF_H_*/

#ifndef GETOPT_H_
#include <getopt.h>
#endif /* GETOPT_H_ */


static struct option pping_opt_long [] =
{
		{ "host",	1,	0,	'h'	},
		{ "dev", 	1,	0,	'd'	},
		{ "file",	1,	0,	'f'	},
		{ "size",	1,	0,	's'	},
		{ 0,		0,	0,	0	}
};


struct st_pping_opts
{
	char host[16];
	char *dev;
	char *file;
	unsigned int size;
};

static char pping_opts_strarg[] = "h:d:f:s:";

struct st_pping_opts * pping_get_client_opt(int , char **);

#endif /* PPING_CLIENT_OPT_H_ */
